<#if hd ??>
<div class="info-section">
    <dl class="clearfix">
        <dt>基本信息</dt>
        <dd class="clearfix">

            <div class="cell" style="width: 200px;">
                <span class="label">入住时间: </span>
                <span class="content" style="width: 200px;"><strong>14:00 - 00:00</strong></span>
            </div>
            <div class="cell">
                <span class="label">离店时间: </span>
                <span class="content"><strong>12:00</strong>之前</span>
            </div>
            <div class="cell">
                <span class="label">${hd.name}剩余: </span>
                <span class="content"><strong>${hd.roomcount}</strong>间客房</span>
            </div>
        </dd>
    </dl>
</div>
        <div class="info-section">
            <div class="expand-wrap" id="_j_facility_info" style="height:72px;">
                <dl class="clearfix">
                    <dt>客房信息</dt>
                    <dd id="kefangxinxi">
                            <ul class="facility-item clearfix" data-count="${hd.roomcount}">
                                <li><i class="icon-bg icon-ok"></i>卧室:${hd.beadroom}间</li>
                                <li><i class="icon-bg icon-ok"></i>浴室:${hd.bathroom}间</li>
                                <li><i class="icon-bg icon-ok"></i>大床:${hd.bed}张</li>
                                <li><i class="icon-bg icon-ok"></i>人数:${hd.peoplenum}</li>
                            <#--<div class="price _j_booking_price">
                                <strong>￥</strong><strong>${h.price}</strong><strong
                                    style="font-size: 12px;color: #666;padding-left: 2px;vertical-align: 1px;">起</strong>
                                <i class="arrow"></i>
                            </div>-->
                                <div class="price _j_booking_sold_out1" hidden  style="color: #ff8a00;font-size: 20px;font-family: 'Microsoft Yahei'" >
                                    <span>已售罄</span>
                                </div>
                                <a href="/hotel/pay?rid=${hd.id}&hid=${hd.hotelId}" hidden class="_j_booking_sold_out2" style="color: #ff8a00;font-size: 20px;font-family: 'Microsoft Yahei'" ><span>预购</span></a>
                            </ul>
                    </dd>
                </dl>
            </div>
        </div>
</#if>
<script>
    $(function () {
        var count = $('.facility-item').data('count');
        console.log(count);
        if(count>0){
            $('._j_booking_sold_out2').prop("hidden",false);
        }else {
            $('._j_booking_sold_out1').prop("hidden",false);
        }
    })
</script>